package room;

import java.util.ArrayList;

public class RoomArray {
	private ArrayList<Room> allRooms=null;
	public RoomArray()
	{
		allRooms=new ArrayList<Room>();
	}
	
	public void addRoom(Room newRoom)
	{
		allRooms.add(newRoom);
	}

	public Room getRoom(int index)
	{
		return allRooms.get(index);
	}

	/**
	 * @return the allRooms
	 */
	public ArrayList<Room> getAllRooms() {
		return allRooms;
	}


	public int getSize() {
		return allRooms.size();
	}

}
